<?php

use Faker\Generator as Faker;

$factory->define(App\Models\Talent::class, function (Faker $faker) {
    return [
        'name' => $faker->name,
        'recommend' => $faker->sentence,
        'first_recommend' => $faker->sentence,
        'sex' => mt_rand(0, 1),
        'birthday' => mt_rand(2000, 2018).'-10-10',
        'education' => ['高中', '大专', '本科', '硕士', '博士'][mt_rand(0, 4)],
        'university' => $faker->title,
        'profession' => $faker->sentence,
        'interview_status' => mt_rand(0, 9),
        'offer_status' => mt_rand(0, 1),
        'resume' => '',
        'batch' => '201903'.mt_rand(10, 20),
        'wait_project_id' => mt_rand(1, 10),
        'wait_status' => 0,
        'wait_batch' => '201903'.mt_rand(10, 20),
        'first_recommend_job' => $faker->title,
        'second_batch' => '201903'.mt_rand(10, 20),
        'second_recommend_job' => $faker->title,
        'second_gzdl' => mt_rand(0, 20),
        'second_zyjn' => mt_rand(0, 20),
        'second_xmjy' => mt_rand(0, 20),
        'second_xxcx' => mt_rand(0, 20),
        'second_zxls' => mt_rand(0, 20),
        'second_total' => mt_rand(0, 100),
        'second_comment' => $faker->sentence,
        'second_conclusion' => $faker->sentence,
        'year' => mt_rand(1, 5),
        'recently_company' => $faker->title,
        'recently_job' => $faker->name,
        'annual_income' => mt_rand(3, 15),
        'expected_salary' => mt_rand(7, 15),
    ];
});